﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agr.CQRS.ViewModel;

namespace Agr.Questionnaire.Core.ViewModel.Qnnaire
{
    public class QuestionnaireDetail : AbstractViewModel
    {
        public virtual string Name { get; set; }
        public virtual IList<QuestionnaireDetail_AnswerableQuestionInList> AnswerableQuestions { get; set; }

        public virtual void AddAnswerableQuestion(QuestionnaireDetail_AnswerableQuestionInList aq)
        {
            if (AnswerableQuestions == null)
                AnswerableQuestions = new List<QuestionnaireDetail_AnswerableQuestionInList>();

            AnswerableQuestions.Add(aq);
        }

    }
}
